<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<%@ page language="java" pageEncoding="UTF-8"%>
<%@page import="com.cupdata.zxt.data.*"%>
<%@page import="com.cupdata.zxt.web.*"%>
<%@page import="com.cupdata.zxt.data.json.*"%>

<%
	DataWrapper dw = ZXTInvoker.invoke("UPLOAD","upload",null,request);
	String dwJSON = DataWrapper2Json.toJsonString(dw);	
%>
<script type="text/javascript" src="../zxt/zxt.js"></script>
<script>importZXT("../zxt");</script>

<script type="text/javascript">
	var __dwJSON = <%=dwJSON%>;
	var __dw = Json2EiInfo.parseJsonObject( __dwJSON );
	parent.uploadCallback(__dw.components()["success"]);
</script>